import request from '@/utils/request'

/* eslint-disable camelcase */
export function getChannelArticle (channel_id, timestamp) {
  return request({
    url: 'articles',
    params: {
      channel_id,
      timestamp
    }
  })
}

export function getAllChannels () {
  return request({
    url: 'channels'
  })
}
